From 9bdc9b4399cc1fa5dfd633a3e2e1645e129b6204 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 1 May 2004 13:30:31 +0000 Subject: [PATCH] (w32-drag-n-drop): Use x-dnd.el functions. --- lisp/term/w32-win.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index f43d8b235d1..1ffab849406 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el @@ -76,6 +76,7 @@ (require 'faces) (require 'select) (require 'menu-bar) +(require 'x-dnd) ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles (if (fboundp 'new-fontset) (require 'fontset)) @@ -105,7 +106,10 @@ Switch to a buffer editing the last file dropped." (y (cdr coords))) (if (and (> x 0) (> y 0)) (set-frame-selected-window nil window)) - (mapcar 'find-file (car (cdr (cdr event))))) + (mapcar (lambda (file-name) + (x-dnd-handle-one-url window 'private + (concat "file:" file-name))) + (car (cdr (cdr event))))) (raise-frame))) (defun w32-drag-n-drop-other-frame (event) -- 2.30.2